package by.amakarevich.dataaccess;

import java.util.List;

import javax.persistence.metamodel.SingularAttribute;

import by.amakarevich.datamodel.Booking;
import by.amakarevich.datamodel.BookingInfo;

public interface BookingInfoDao extends AbstractDao<Long, BookingInfo> {

	List<BookingInfo> getAllBookingInfo();

    List<BookingInfo> getAllBookingInfoByBooking(SingularAttribute<BookingInfo, ?> attr, boolean ascending, int startRecord, int pageSize);
    
    void deleteBookingInfo(Long id);
    
    List<BookingInfo> getAllByBooking(Booking booking);
    
    BookingInfo getByBookingInfoId(Long bookingInfoId); 
}
